home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / game / role / ldmud-3.2-bin.lha / mud / doc / efun / tell_object < prev    next >
Text File  |  2001-04-23  |  983b  |  35 lines

  1. SYNOPSIS
  2.         void tell_object(object ob, string str)
  3.  
  4. DESCRIPTION
  5.         Send a message str to object ob. If it is an interactive
  6.         object (a user), then the message will go to him (her?),
  7.         otherwise the lfun catch_tell() of the living will be called
  8.         with the message as argument.
  9.  
  10. EXAMPLES
  11.         object who;
  12.         who=find_player("wessex");
  13.         tell_object(who, "Hi!\n");
  14.         
  15.         Just tell Wessex a simple "Hi!".
  16.         
  17.         
  18.         Object 1 (living with the name "dummymonster"):
  19.            void catch_tell(string str) {
  20.               write("Received: "+str+"\n");
  21.            }
  22.         Object 2:
  23.            void func() {
  24.               object who;
  25.               who=find_living("dummymonster");
  26.               tell_object(who, "Follow me, mortal one!\n");
  27.               ...
  28.            }
  29.         
  30.         This examples shows how tell_object() together with
  31.         catch_tell() works.
  32.  
  33. SEE ALSO
  34.         write(E), say(E), catch_tell(A)
  35.